<template>
  <div>
    <button @click="addOne">+1</button>
    <button @click="addN">+n</button>
  </div>
</template>

<script>
  export default {
    name: "Child",
    methods: {
      addOne() {
        this.$emit("add-one");
      },
      addN() {
        this.$emit("addn", 3);
      },
    },
  };
</script>

<style></style>
